package xyz.wpxy.iotlink.network.core.entity;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

public class DeviceDataEntity extends DataEntity implements Serializable {
    private static final long serialVersionUID = 6181868506499267738L;

    /**
     * 数据体
     * 不要使用payload json外部接口使用，内部全部使用Payloads
     */
    private Object payload;

    /**
     * 不要使用payload json外部接口使用，内部全部使用Payloads
     */
    private List<Map<String, Object>> payloads;

    public Object getPayload() {
        return payload;
    }

    public void setPayload(Object payload) {
        this.payload = payload;
    }

    public List<Map<String, Object>> getPayloads() {
        return payloads;
    }

    public void setPayloads(List<Map<String, Object>> payloads) {
        this.payloads = payloads;
    }

    @Override
    public String toString() {
        return "DeviceDataEntity{" +
                "payload=" + payload +
                ", payloads=" + payloads +
                '}';
    }
}
